package com.jc.repository.generator.utils;

import com.jc.base.EnumCode;

/**
 * @author wangli
 * @create 2016-10-19 19:24
 * @description 查询条件对应的枚举类,以及其构造的条件对应的字符串
 */
public enum Condition implements EnumCode {
    andIsNull("0", "IsNull"),
    andIsNotNull("1", "IsNotNull"),
    andEqualTo("2", "EqualTo"),
    andNotEqualTo("3", "NotEqualTo"),
    andGreaterThan("4", "GreaterThan"),
    andGreaterThanOrEqualTo("5", "GreaterThanOrEqualTo"),
    andLessThan("6", "LessThan"),
    andLessThanOrEqualTo("7", "LessThanOrEqualTo"),
    andLike("8", "Like"),
    andNotLike("9", "NotLike");


    private String code;
    private String build;

    Condition(String code, String build) {
        this.code = code;
        this.build = build;
    }

    @Override
    public String code() {
        return this.code;
    }

    public String getBuild() {
        return this.build;
    }
}
